﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QListWidget>
#include "wifiwidget.h"
#include "wifimanager.h"
static WiFiWidget* wifiwidget_current = nullptr;
class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    bool setitem(WiFiInfoList& wifi_info_list,GUID guid);
    // static void OnWlanConnectCallback(PWLAN_CONNECTION_NOTIFICATION_DATA pData, DWORD dwConnectCode);
    //void complete_method();
    ~MainWindow();
public slots:
    void slotItemPressed(QListWidgetItem *item); // item按下槽函数
    void slotCurrentItemChanged(QListWidgetItem *current, QListWidgetItem *previous); // 当前item改变槽函数
private:
    QListWidget* wifi_list;
public:
    static MainWindow* temp_mainwindow;
    // static WiFiWidget* wifiwidget_current;
signals:
    void complete();
public slots:
    void complete_method();

};
#endif // MAINWINDOW_H
